package com.thinkgem.jeesite.frame.pm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.thinkgem.jeesite.kpoint.core.base.KpointBaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

;

/**
 * 数据字典Entity
 *
 * @author kongxiangsheng
 * @version 2018-08-31
 */
@Data
public class PmDataDictItem extends KpointBaseEntity {
    public static final String COL_DATA_DICT_ID = "`data_dict_id`";
    public static final String COL_ITEM_CODE = "`item_code`";
    public static final String COL_ITEM_NAME = "`item_name`";
    public static final String COL_SORT = "`sort`";

    private static final long serialVersionUID = 1L;
    /**
     * data_dict_id
     */
    @Length(min = 0, max = 30, message = "data_dict_id长度必须介于 0 和 30 之间")
    private String dataDictId;
    /**
     * item_code
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 1, max = 30, message = "item_code长度必须介于 1 和 30 之间")
    private String itemCode;
    /**
     * item_name
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 0, max = 255, message = "item_name长度必须介于 0 和 255 之间")
    private String itemName;
    /**
     * sort
     */
    @Length(min = 0, max = 11, message = "sort长度必须介于 0 和 11 之间")
    private String sort;

    /**
     * 拓展字段1
     */
    private String extAttr1;
    /**
     * 拓展字段2
     */
    private String extAttr2;
    /**
     * 拓展字段3
     */
    private String extAttr3;
    /**
     * 拓展字段4
     */
    private String extAttr4;
    /**
     * 拓展字段5
     */
    private String extAttr5;
    /**
     * 拓展字段6
     */
    private String extAttr6;
    /**
     * 拓展字段7
     */
    private String extAttr7;

    /**
     * 数据字典Code-查询用
     */
    @TableField(exist = false)
    private String dictCode;
}